<!--
 * @Author: your name
 * @Date: 2021-08-11 11:12:57
 * @LastEditTime: 2021-08-11 11:29:09
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \briup\3-html&css\day08\05-父元素的支撑.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        ul#u1 li{
            float:left;
            width:200px;margin-left: 40px;
        }
        .imgshow{
            height:200px;
            background-color: darkturquoise;
        }
        .clearboth{
            clear:both;
        }
        ul#u2 li{
            float:right;
        }
        ul#u2::after{
            content:'';
            display:block;
            clear:both;
        }
        ul#u3 li{
            float:left;

        }
        ul#u3{
            height:40px;
        }
        ul#u4 li{
            float:left;
        }
        ul#u4{
            overflow: hidden;
        }
    </style>
</head>
<body>
    <ul id="u1">
        <li>菜单一</li>
        <li>菜单一</li>
        <li>菜单一</li>
        <li>菜单一</li>
        <div class="clearboth"></div>
    </ul>
    <div class="imgshow"></div>
    <ul id="u2">
        <li>菜单一</li>
        <li>菜单一</li>
        <li>菜单一</li>
        <li>菜单一</li>
    </ul>
    <div class="imgshow"></div>
    <ul id="u3">
        <li>菜单一</li>
        <li>菜单一</li>
        <li>菜单一</li>
        <li>菜单一</li>
    </ul>
    <div class="imgshow"></div>
    <ul id="u4">
        <li>菜单一</li>
        <li>菜单一</li>
        <li>菜单一</li>
        <li>菜单一</li>
    </ul>
    <div class="imgshow"></div>
    <ul id="u5">
        <li>菜单一</li>
        <li>菜单一</li>
        <li>菜单一</li>
        <li>菜单一</li>
    </ul>
    <div class="imgshow"></div>
    <ul id="u6">
        <li>菜单一</li>
        <li>菜单一</li>
        <li>菜单一</li>
        <li>菜单一</li>
    </ul>
    <div class="imgshow"></div>
</body>
</html>